package com.chenglu.android.common.net;


import com.chenglu.android.common.utils.SPUtils;

/**
 * @author: lyj
 * @Created: by Copyright 2023/3/2 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：常量类
 */
public class Constant {

   //   https://zhtest.slmykj.com 测试   https://chengluyouxuan.com/api 生产


    public static  final String BASEDEVAPI = "http://apitest.slmykj.com";     //开发测试环境


    public static  final String BASEZHTESTAPI = "http://zhtest.slmykj.com";//橙鹿测试环境

    public static  final String BASECLAPI = "https://chengluyouxuan.com/api";       //橙鹿生产环境
//    public static  final String BASECLAPI = "https://cl.slmykj.com";       //橙鹿生产环境

    public static final String url = SPUtils.getString("IPch", "https://chengluyouxuan.com/api");


    //隐私协议
    public static  final String HTTPYINSI = "https://chengluyouxuan.com/privacyAgreement.html";
    // 用户服务协议
    public static  final String HTTPYONGHU = "https://chengluyouxuan.com/userAgreement.html";
    /**
      *
      * @description 订单支付接口paytype
      * 支付渠道：0无需拉起支付， 1支付宝， 2微信 3汇付支付宝 4汇付微信
     *
      */

    //短信登录的方式的参数
    public static  final  String mobileSms = "mobileSms";
    //一键登录的方式的参数
    public static  final  String oneClickLoginByLocalNumber = "oneClickLoginByLocalNumber";

    //登录的token
    public static  final  String AaccessToken = "AaccessToken";
    //刷新用的token
    public static  final  String refreshToken = "refreshToken";



    public final  static  int PAY = 0;
    public final  static  int ALIPAY = 1;
    public final  static  int WECHATPAY =2;

    public final  static  String APPCLIENT = "3";

    //手机号码
    public final static String USERNAME = "username";
    //密码
    public final static String PASSWORD = "password";


    //用户id
    public final static String USERID = "userid";
    //昵称
    public final static String NICKNAME = "nickname";

    //头像url
    public final static String AVATARURL = "avatarUrl";



//    订单临时时间
    public final static String TMPORDERTIME = "tmpordertime";
    //订单的价格
    public final static String TMPORDERPRICE = "tmporderprice";
    //临时标题
    public final static String TMPTITLE = "tmpTitle";

    public final static String tmpDescription = "tmpDescription";
    //临时类型
    public final static String TMPTYPE = "tmptype";
    //图片
    public final static String TMPORDERTHUMB = "tmporderThumb";
    //订单的临时id
    public final static String TMPORDERID = "tmporderid";

    public final static String tmpordernum = "tmpordernum";

    public final static String ORDERURL = "orderUrl";


    public final static String SEARCHNAME = "searchname";

    public final static String shopsTypeId = "shopTypeId";

    public final static String SEARCHSTATUS = "searchstatus";

    public final static String KEYWORDS_HOSITORY = "keywords";

    public final static String ISORDERCOMMENT = "isordercomment";

    public final static String ISLOCATION = "ISLOCATION";

    public final static String ISWRITESTORAGE = "ISWRITESTORAGE";

    public final static String ISNOTICESERVICE= "ISNOTICESERVICE";

    public final static String ISBINGSERVICECENTER= "ISBINGSERVICECENTER";







           
     /**
       *
       * @description 请求状态 成功
       *
       */
     
    public final static int HTTPCODE200 = 200;

    /**
     *请求状态码
     * @description 401 请求未授权
     *
     */
    public final static int HTTPCODE401 = 401;
    /**
     *请求状态码
     * @description 400 参数请求错误
     *
     */
    public final static int HTTPCODE400= 400;

    /**
     *   请求状态码
     * @description 请求失败
     *   500
     */
    public final static int HTTPCODE500= 500;

    /**
     *   请求状态码
     * @description 请求无响应
     *   404
     */
    public final static int HTTPCODE404= 404;

    /**
     *   请求状态码
     * @description 密码支付
     *   409
     */
    public final static int HTTPCODE409= 409;

    /*密码不正确*/
    public final static int HTTPCODE410= 410;


    //是否显示主页
    public final static String zero = "0";
    //是否是在首页显示 0-否 1-是
    public final static String one = "1";
    // 	分类层级 (一级 - 1 二级 -2 依此 （一、二级通常只有首页和各行业的图标菜单）)
    public final static String two = "2";
   // 行业类型id 1-商城 2-餐饮 3-美容 4-教育 5-装修 6-农业 7-酒店 999-公共板块

    public final static String shopsTypeId999 = "999";

    public final static int SIZE = 6;

    public final static int SIZETEN = 10;

    public final  static String KEFUSTATU = "kefuStatu";

    public final  static String SPPRIVACY = "SPPRIVACY";


    public final  static String CURRENTLAT = "CURRENTLAT";
    public final  static String CURRENTLON = "CURRENTLON";
    public final  static String CURRENTCENTER = "CURRENTCENTER";

    public final  static String POSITIONTILTE = "POSITIONTILTE";


    //    case none = 0                /// 空
//    case shop = 1                /// 商超
//    case restaurant = 2          /// 餐饮
//    case beauty = 3              /// 美业
//    case education = 4           /// 教育
//    case minimart = 8            /// 便利店
//    case pharmaceuticals = 9     /// 药店
//    case breed = 10              /// 孕育
//    case max = 999               /// 平台公共
    public final static int typeIdNone = 0;
    public final static int typeIdShop = 1;
    public final static int typeIdRestaurant = 2;
    public final static int typeIdBeauty = 3;
    public final static int typeIdEducation = 4;
    public final static int typeIdMinimart = 8;
    public final static int typeIdPharmaceuticals= 9;
    public final static int typeIdBreed= 10;
    public final static int typeIdMax= 999;

}
